<template>
  <div class="about">
    <AppleTable :myslf="myslf"></AppleTable>
    <div v-if="user">
      <My></My>
    </div>
    <div v-else>
      <Register></Register>
    </div>
  </div>
</template>

<script>
import My from "../components/Myself/My.vue"
import AppleTable from "../components/HomeView/AppleTabar.vue";
import Register from "../components/Myself/RegisterPage.vue";
export default {
  components: {
    AppleTable,
    Register,
    My
  },
  data() {
    return {
      user: "",
      myslf: true,
    };
  },
  created() {
    this.user = JSON.parse(localStorage.getItem("user"));
  },
};
</script>